﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="logInUC.ascx.cs" Inherits="MobiMap.Admin.LogInUC" %>

<link rel="Stylesheet" href="../Style/AdminStyle.css" type="text/css" />

<script language="javascript" type="text/javascript">
function checkLogIn()
{
    if (document.getElementById("<%=txtUsername.ClientID%>").value=="")
    {
        //alert("Vui lòng nhập thông tin đăng nhập");
        document.getElementById("<%=txtUsername.ClientID%>").focus();
        return false;
    }
    else if(document.getElementById("<%=txtPassword.ClientID%>").value=="")
    {
        //alert("Vui lòng nhập thông tin đăng nhập");
        document.getElementById("<%=txtPassword.ClientID%>").focus();
        return false;
    }
    
    return true;
}
</script>


<div align="right" style="height: 50px; padding-top: 5px;" >    
    <div align="left" id="divInput" runat="server" visible="true">
        <div id="divError" runat="server" visible="false" style="color: Red; font-size: 11px;"></div>
        <table cellpadding="0px" cellspacing="3px">
        
        <tr>                              
            <td><asp:TextBox ID="txtUsername" runat="server" CssClass="textbox_login" Text="admin"/></td>
            <td><asp:TextBox ID="txtPassword" runat="server" CssClass="textbox_login" TextMode="Password"/>
            </td>
            <td>
                <asp:Button ID="btnLogIn" runat="server" CssClass="button" onclick="btnLogIn_Click" Text="Đăng nhập" 
                        OnClientClick="return checkLogIn();"/>
                <asp:CheckBox ID="chkRemember" runat="server" Text="Ghi nhớ" />                        
            </td>
        </tr>        
                
        
        </table>
    </div> 
    <div id="divAccount" runat="server" visible="false">
        <asp:Label ID="lbHello" runat="server" Text="Hi, Admin"></asp:Label>&nbsp;| 
        <asp:LinkButton ID="linkSignOut" runat="server" onclick="linkSignOut_Click">Sign out</asp:LinkButton>
    </div>
</div>


